import Http from '@/lib/http'

/** 预约api */
export default {
  /** 获取个人 */
  findOneAppointment: (params: any) => Http.get('appointment/findOneAppointment', params),
  /** 获取所有 */
  findAllAppointment: (params: any) => Http.get('appointment/findAllAppointment', params),
  save: (params: any) => Http.post('appointment/addAppointment', params),
  update: (params: any) => Http.post('appointment/updateAppointment', params),
  remove: (params: any) => Http.post('appointment/remove', params),
  findState: (params: any) => Http.get('appointment/findState', params),
  updateState: (params: any) => Http.post('appointment/updateAppointment1', params),
  updateState1: (params: any) => Http.post('appointment/updateAppointment2', params)
}
